package com.chengh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chengh.common.utils.PageUtils;
import com.chengh.gulimall.product.entity.CategoryEntity;
import com.chengh.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author chengh
 * @email 13593651219@163.com
 * @date 2020-04-06 20:34:33
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     * 找到catelogPath的完整路径
     * [父/子/孙]
     * @param groupAttrGroupId
     * @return
     */
    Long[] findCatelogPath(Long groupAttrGroupId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

